package com.bdk.middle.tenant.service;

import com.bdk.middle.common.result.ResultDO;
import com.bdk.middle.tenant.api.domain.TenantUserDO;
import com.bdk.middle.tenant.api.query.TenantUserQueryDO;
import com.bdk.middle.tenant.core.entity.TenantUserEntity;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Reagan
 * @since 2021-03-09
 */
public interface TenantUserService extends IService<TenantUserEntity> {

    /**
     * 添加租户
     * @param domain 租户DO
     * @return ResultDO
     */
    public ResultDO add(TenantUserDO domain);

    /**
     * 修改租户信息
     * @param domain 租户DO
     * @return ResultDO
     */
    public ResultDO edit(TenantUserDO domain);

    /**
     * 获取租户详情
     * @param id 租户ID
     * @return ResultDO
     */
    public ResultDO get(String id);

    /**
     * 删除租户
     * @param id 租户ID
     * @param modifier 修改人租户名
     * @return ResultDO
     */
    public ResultDO remove(String id, String modifier);

    /**
     * 查找租户列表分页
     * @param domain 查询DO
     * @return ResultDO
     */
    public ResultDO find(TenantUserQueryDO domain);
}
